from PySide import QtCore, QtGui


class Ui_NewOrder(object):
    def setupUi(self, NewOrder):
        NewOrder.setObjectName("NewOrder")
        NewOrder.resize(593, 433)
        self.gridLayout = QtGui.QGridLayout(NewOrder)
        self.gridLayout.setObjectName("gridLayout")
        self.verticalLayout_2 = QtGui.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.lblName = QtGui.QLabel(NewOrder)
        self.lblName.setObjectName("lblName")
        self.horizontalLayout.addWidget(self.lblName)
        self.tbxName = QtGui.QLineEdit(NewOrder)
        self.tbxName.setObjectName("tbxName")
        self.horizontalLayout.addWidget(self.tbxName)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.lblDate = QtGui.QLabel(NewOrder)
        self.lblDate.setObjectName("lblDate")
        self.horizontalLayout_2.addWidget(self.lblDate)
        self.dateDate = QtGui.QDateEdit(NewOrder)
        self.dateDate.setObjectName("dateDate")
        self.horizontalLayout_2.addWidget(self.dateDate)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.lblDeliveryDate = QtGui.QLabel(NewOrder)
        self.lblDeliveryDate.setObjectName("lblDeliveryDate")
        self.horizontalLayout_3.addWidget(self.lblDeliveryDate)
        self.dateDeliveryDate = QtGui.QDateEdit(NewOrder)
        self.dateDeliveryDate.setObjectName("dateDeliveryDate")
        self.horizontalLayout_3.addWidget(self.dateDeliveryDate)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.lblExtraCost = QtGui.QLabel(NewOrder)
        self.lblExtraCost.setObjectName("lblExtraCost")
        self.horizontalLayout_4.addWidget(self.lblExtraCost)
        self.dblSpinBoxExtraCost = QtGui.QDoubleSpinBox(NewOrder)
        self.dblSpinBoxExtraCost.setMaximum(10000000.0)
        self.dblSpinBoxExtraCost.setSingleStep(100.0)
        self.dblSpinBoxExtraCost.setObjectName("dblSpinBoxExtraCost")
        self.horizontalLayout_4.addWidget(self.dblSpinBoxExtraCost)
        self.verticalLayout_2.addLayout(self.horizontalLayout_4)
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.lblStaff = QtGui.QLabel(NewOrder)
        self.lblStaff.setObjectName("lblStaff")
        self.horizontalLayout_5.addWidget(self.lblStaff)
        self.btnStaff = QtGui.QPushButton(NewOrder)
        self.btnStaff.setObjectName("btnStaff")
        self.horizontalLayout_5.addWidget(self.btnStaff)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.verticalLayout = QtGui.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.lblDescription = QtGui.QLabel(NewOrder)
        self.lblDescription.setObjectName("lblDescription")
        self.verticalLayout.addWidget(self.lblDescription)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout_6.addLayout(self.verticalLayout)
        self.plainTextEditDescription = QtGui.QPlainTextEdit(NewOrder)
        self.plainTextEditDescription.setObjectName("plainTextEditDescription")
        self.horizontalLayout_6.addWidget(self.plainTextEditDescription)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem1)
        self.buttonBox = QtGui.QDialogButtonBox(NewOrder)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.horizontalLayout_7.addWidget(self.buttonBox)
        self.verticalLayout_2.addLayout(self.horizontalLayout_7)
        self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1)

        self.retranslateUi(NewOrder)
        # QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), NewOrder.accept)
        # QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), NewOrder.reject)
        QtCore.QMetaObject.connectSlotsByName(NewOrder)

    def retranslateUi(self, NewOrder):
        NewOrder.setWindowTitle(QtGui.QApplication.translate("NewOrder", "Новый заказ", None, QtGui.QApplication.UnicodeUTF8))
        self.lblName.setText(QtGui.QApplication.translate("NewOrder", "Название", None, QtGui.QApplication.UnicodeUTF8))
        self.lblDate.setText(QtGui.QApplication.translate("NewOrder", "Дата", None, QtGui.QApplication.UnicodeUTF8))
        self.lblDeliveryDate.setText(QtGui.QApplication.translate("NewOrder", "Срок поставки", None, QtGui.QApplication.UnicodeUTF8))
        self.lblExtraCost.setText(QtGui.QApplication.translate("NewOrder", "Дополнительные расходы", None, QtGui.QApplication.UnicodeUTF8))
        self.dblSpinBoxExtraCost.setSuffix(QtGui.QApplication.translate("NewOrder", " руб.", None, QtGui.QApplication.UnicodeUTF8))
        self.lblStaff.setText(QtGui.QApplication.translate("NewOrder", "Товары", None, QtGui.QApplication.UnicodeUTF8))
        self.btnStaff.setText(QtGui.QApplication.translate("NewOrder", "Выбрать", None, QtGui.QApplication.UnicodeUTF8))
        self.lblDescription.setText(QtGui.QApplication.translate("NewOrder", "Описание", None, QtGui.QApplication.UnicodeUTF8))

